<template>
  <div class="box-card">
    <div>
      <el-image :src="src" class="AcImg"></el-image>
    </div>
    <div class="AcContent">
      <el-row>
        <el-col :span="12"><el-button class="text" type="text" @click="GoAchievements">找成果</el-button></el-col>
        <el-col :span="12"><el-button class="text" type="text" @click="GoRequirements">找需求</el-button></el-col>
      </el-row>
      <el-row>
        <el-col :span="12"><el-button class="text" type="text" @click="GoExperts">找专家</el-button></el-col>
        <el-col :span="12"><el-button class="text" type="text" @click="GoPolicies">找政策</el-button></el-col>
      </el-row>
      <el-row>
        <el-col :span="12"><el-button class="text" type="text" @click="GoInstitutes">找院所</el-button></el-col>
        <el-col :span="12"><el-button class="text" type="text" @click="GoService">找服务</el-button></el-col>
      </el-row>
    </div>
    <el-dialog
      :visible.sync="centerDialogVisible"
      width="30%"
      top="36vh"
      >
      <span slot='title' style="font-size:20px;font-weight:600">找服务</span>
      <div style="display:flex;justify-content: space-evenly;">
        <el-button @click="GoPR" type="primary" >发布成果</el-button>
        <el-button @click="GoPD" type="primary" >发布需求</el-button>
      </div>
    </el-dialog>
  </div>
</template>


<script>
export default {
  name: 'AcBoxCard',
  data () {
    return {
      src: require('../../../src/assets/Acimg.jpg'),
      centerDialogVisible: false,
    }
  },
  methods: {
    GoAchievements(){
      this.$router.push({path:'/SandTAchievements'});
    },
    GoRequirements(){
      this.$router.push({path:'/TechRequirements'})
    },
    GoExperts(){
      this.$router.push({path:'/ExpertsThinkTank'})
    },
    GoPolicies(){
      this.$router.push({path:'/PolicyInterpretation'})
    },
    GoInstitutes(){
      this.$router.push({path:'/IndustrialCluster'})
    },
    GoService(){
      console.log("找服务");
      this.centerDialogVisible = true;
    },
    GoPR(){
      this.$router.push({path:'/Result'});
      this.centerDialogVisible = false;
    },
    GoPD(){
      this.$router.push({path:'/Demand'});
      this.centerDialogVisible = false;
    }
  }
}
</script>


<style scoped>
  .box-card{
    background-color: rgb(206, 226, 206);
  }
  .AcImg{
    height: 100px;
    width: 300px;
    padding: 12px;
  }
  .el-col{
    border: solid 1px darkgrey;
  }
  .text{
    font-size: 18px;
    padding: 30px;
  }
</style>